<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyStack.Models.Story>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <!-- NIC editor http://wiki.nicedit.com/Configuration+Options -->
    <script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
    <script type="text/javascript">
        //<![CDATA[
        bkLib.onDomLoaded(function() {
        new nicEditor({ buttonList: [
                            'fontSize'
                            , 'bold'
                            , 'italic'
                            , 'underline'
                            , 'strikeThrough'            
                            , 'ol'
                            , 'ul'
                            , 'removeformat'
                            , 'hr'
                            , 'image'
                            , 'upload'
                            , 'forecolor'
                            , 'bgcolor'
                            , 'link'
                            , 'unlink'
                            , 'fontSize'
                            , 'fontFamily'
                            , 'fontFormat'
                            , 'xhtml'            
            ] }).panelInstance('Content');
        });
        //]]>
    </script>
    <style type="text/css">
        .pushStoryContent
        {
            width: 100%;
            height: 15em;
        }
        #title
        {
            font-size: 3em;
            color: #7a7368;
            font-weight: 900;
            padding: 20px 0 20px 0;
        }                     
    </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Push
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="title">
        Push.
    </div>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
            <label for="Title">
                Story title</label>
            <div style="padding-top:5px;"></div>
            <%= Html.ValidationMessage("Title", "*") %>
            <div style="background-color:White;height:100%;width:300px;"class="rounded3">
            <%= Html.TextBox("Title")%></div>
        <div class="clear"></div>
            <div style="padding-top:20px;"></div>
            <label for="Content">
                Enter your content</label>
            <div style="padding-top:5px;"></div>
            <div style="background-color:White;">                    
            <%= Html.TextArea("Content", new { @class="pushStoryContent" })%>
            </div>
            <%= Html.ValidationMessage("Content", "*") %>
            <div style="padding-top:10px;"></div>
            <div style="float:right;background-color:#C0C97B;height:100%;"class="rounded3">
            <input type="submit" value="Push Story" /></div>
            <!-- This hooks up the RTE to this button-->
    <div style="padding-top:10px;"class="clear"></div>
    <%= Html.ActionLink("Back to Stack", "Index") %>
    <% } %>
            
    
</asp:Content>
